package org.dromara.netbar.domain.bo;

import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.netbar.domain.NetbarAutoGrant;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 自动发放策略业务对象 netbar_auto_grant
 *
 * @author Lion Li
 * @date 2025-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = NetbarAutoGrant.class, reverseConvertGenerate = false)
public class NetbarAutoGrantBo extends BaseEntity {

    /**
     * 策略ID
     */
    @NotNull(message = "策略ID不能为空", groups = { EditGroup.class })
    private Long autoGrantId;

    /**
     * 发放名称
     */
    @NotBlank(message = "发放名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String grantName;

    /**
     * 发放类型：1=礼包
     */
    @NotNull(message = "发放类型：1=礼包不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long grantType;

    /**
     * 关联礼包ID
     */
    @NotNull(message = "关联礼包ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long giftPackId;

    /**
     * 发放次数限制（0=无限次）
     */
    @NotNull(message = "发放次数限制（0=无限次）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long methodCount;

    /**
     * 单次充值最低金额（>=此金额触发）
     */
    @NotNull(message = "单次充值最低金额（>=此金额触发）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long minRechargeAmount;


    private Long memberId;

    private Long status;
}
